var tabs = "intent_tab"
$(document).ready(function() {
	$("#associatedForm").validate({
		submitHandler: function(form){
		Oosp_Loading('正在提交，请稍等...');
		form.submit();
	},
	errorContainer: "#messageBox",
	errorPlacement: function(error, element) {
	$("#messageBox").text("输入有误，请先更正。");
		if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
			error.appendTo(element.parent().parent());
		} else {
			error.insertAfter(element);
		}
		}
	});
	
	function getUrl(url){ 
		  $("#versionFrame").attr("src",url);
	}
			 
	$("#saveAssociated").click(function (){
		$("#associatedForm").submit();
	});
});
